Set postgres host when creating a test_app

Fixes #3988