Replaced deprecated assert_ with assertTrue
Removed use of dict for building options in func_to_optionparser for better reliability in tests