fix medium test failing in postgre