This is why those tests are failing - you're overriding an ENV var that is already being set by the `jenkins.sh` test runner. It will fail occasionally depending on whether this test file is processed before the other or not, and whether they are both processed by the same parallel runner. Update this line to `ENV['GOVUK_APP_DOMAIN'] ||= 'preview.alphagov.co.uk'` and all should be well.