Modified test case fro flip()