Improved autoloader and added test custom exception class