peer discovery has a failing test. rearranged the test to be more idiomatic