Bugfix: Improvements to postgres test env.