https://www.hrdefenseblog.com/2018/05/say-goodbye-to-indepen...
This is very similar to the IR35 tests that operate in the UK, although that legislation is primarily used for determining what tax should be applied.