changed unit test to assert_array_equal for levelize