fixed bug in test for PostgresSql