checkExpectedElements