testing a controller