fixed test setup for postgres