properly set request attributes in controller test