Fixed direct string object comparison. Added unit test for Session