improve test slightly
implement simple check_peer function and test