added controller test cases