Testing of create session and logout methods using httptest servers