test client connects to handler using ws module