Refactor autoloader specs