added tests for sessions/users, added functionality to sessions/users