added processing for cleaned attribute/value list and tests to confirm behavior