Updated tests for randomPermute.