Add a test for monotonic