Refactoring pg-virtualenv-test