changed routing after taking test, redirected to aftertest page, added aftertest method in test controller, cathced error when adding and editing test and question