SERVER-13603 Move option testing support code into shared test helper
(cherry picked from commit f7d78f9511d3e4fa156d6f94322f5a690a21bc20)