adding getSession test
adding onOpen test
adding flush socket test