Added authentication tests and enhanced routes.