test socket
check borders