added tests for sessions