adding test and not clobbering pervious class on list element