Moved the 'discoverycomplete' handler into the first test case (fixes a supposedly broken test on node 0.10.x)