add tests for sessions