improve testability

This will get Travis CI running tests.  I switched tests back to the default PostgreSQL port because I didn't see anyway to easily tell Travis CI to use another port.  If that's problematic I can investigate further.