Pimped testsuite for PostgreSQL

Made it completely PostgreSQL compatible and added it to the travis build file.

PostgreSQL needed some bugfixes to work with all tests (even to setup the fixtures).