refactored testPadFrameRange to work with all types of expected frame ranges.