Minor bug fix in test helper
Merge pull request #5613 from guardian/test-automation-identity

Minor bug fix in test helper