included minimal unit test to permuted_columns. Defensive against missing attribtues