Added test for flapping condition.