Fixes for authenticateSecurityKey.test.js
Fixes for authenticateSecurityKey.test.js

Includes:
- mocking window.location
- changing how tests change the current url's
  query string

alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin