Added some tests for sessions