Fixed the broken remote tests

This test worked fine locally, but didn't behave as expected when ran
against production. My changes remedy that.
Merge pull request #547 from ministryofjustice/remote-prod-tests

Fixed the broken remote tests
Merge branch 'master' into courtfinder-error-links