Use the generic testHelpers.testInvalidPasswordAndAuthenticationPassword function to avoid test duplication.