added assertions that checks the elements of the where section.