Set postgres host when creating a test_app

Fixes #3988
Merge branch '2-1-stable' into add-restart-checkout-flow
add specs for restart_checkout_flow