Fixed createSession tests.