added test for postgres query builder