changeing the test not to be sensitive to the order of attributes