Integration test helpers

Pulled the helper code out from https://github.com/alphagov/vcloud-core/pull/48 as I need to use this for [#70499730] as well as [#70499718].