fix tests for postgres >= v9.2.0
fix tests on older versions of postgres
use master branch url for travis image
make tests pass on pg@8.4.9
Merge pull request #331 from brianc/postgres-gte-9.2

fix tests on new versions of postgres