Moved the test autoloading to autoload-dev

This avoids registering the test namespace in the autoloader when using the library as a dependency