testcase for wrong ordering