added sockethandler tests