allow to set DB's host for tests

allows me to run tests against DB in a VM without trickery
Merge branch '4.0/test-db-host-env-for-tests' into 4.0-trunk