wrote new test class with controller