Yup. Me too.
It's not as bad with design/IT agencies anymore, but I know that lawyer agencies are still notorious for this. Big-ish lawyer agencies with dozens of lawyers have no employees, everyone is a "partner" (or whatever the term is).
In fact it's a funny rite of passage for most lawyers: after graduation they have to work for 3 years for a law firm before they are allowed to take the bar exam and become "real" lawyers. During this time they earn a salary. When they finally become "real" lawyers by passing the bar, they get fired. :) And immediately taken back on as contractors.
Associate lawyers (what you are before partner) are paid a regular salary as employees.
Law firms aren't healthy workplaces, but I wouldn't worry about the legal rights of the lawyers working for them.
It all depends on how your contract is written - if you have clauses that put some of the business risk on you (e.g. you give 3 month warranty on the code you write, or have some bogus penalties for contract breach, or other things, which I've never seen enforced) then it cannot be treated as full time employment, even if you have just one client for which you issue invoices.
The only thing that is an actual red flag for tax office is when you start as a full time employee, and then switch to running sole proprietorship and your previous employer remains your only client - then it is too obvious that this is just employment in disguise.
EDIT: Also, those "independent contractor" contracts come in different shapes. I, for example have just an hourly rate set, and then I get paid for the hours worked. Some people prefer to have flat monthly rate, and even some paid vacations included in their "B2B contracts", which makes it more suspicious.
Polish here. It is like you described but a) not many people know about this (sometimes I surprise some guys telling them their employment form - independent contractor for one company where you are actually working full time - is illegal) and b) I've never heard of someone being caught practicing this.