PostgreSQL specific test cleanup

While working on a different issue i noticed some minor things in postgres related tests:

* `datatype_test.rb` contained a lot of switched `assert_equal` statements, which lead to confusing exceptions.
* I removed a warning issued by one of the tests and added an assertion.