Added some test code for grabbing the upper and lower thresholds for the viewport.