Add helper function to update an option
Break up unit tests and add for new function