Fix taketest() function in TestController.php