Unit tests for UserSessions