added more robust input checking for routes
passed sol to controller and updated tests