testing on socket