corrected custom option use and added test cases to check if defaults are successfully overridden