Adding tests for sessions