Fixed unit tests when run remotely via web-test-runner