Improved out of range testing to include vertical checks