Unit test the controller