Properly handle .test() options.