move autload to front controller, use autload in tests