Added more tests for JWT
Throw error on invalid response when creating session for user