added test for session creation