added a few more tests and fixed another bug in the sessions