generating controller test