Factor the with_options tests