The government has unveiled plans to expand work eligibility tests to workers in the “gig economy”.