a bit of cleanup in test_socket

remove unused duplicate test_poll and some imports