Test for interval of monotonic function