fixed required autoload and added test