controller test example write complete