controller test first implementation