fix autoloading for testing