added socket handler test