functional test for session creation