Fix unit tests for autoloader