Fixed up bugs in sessions controller test code