ch25: testing a controller