add controller test case