add testcase for select fix