Fixing test to use testserver.local.
Fixing tests for postgresql adapter.