Bugfixes, added additional test to unit test for session storage