Tests for sessions controller