Test for Monotonicity in an Interval