[tests] adapt as possible to postgresql