Oops, had added toLowercase to wrong string. Correction. Fixing flaky test