mock the database in a controller test