Fix name of function call. And to clarify how to test.
Fix when openSession() function failed, return false.