Add more tests with various reorderings of data

Includes reorderings of distance matrix rows/cols, and data frame columns specified in a different order.