Fix auto-generated main not importing tested when using tested for running tests.

Currently including tested as a dependency causes test_main to try and use tested for running tests, but that fails to compile as it does not import tested, unless a different module publicly imports tested.