created tests in class timeControllerTest.php