fix test

Here is a version of the Prufer test that ignores order.