Added error checking and tests for optionsHelp