fix testcase for postgres