write some controller test code