Fix tests in latest firefox

Firefox already provides `endsWith` natively