Fix running tests for autoloaded classes