replaced checkListElementClass and assertVector