Added proper tests to sessionrepo