Made test cases for NativeSessionHandler