add test to flip interval