unit testing a controller