test for session class