improved required error, fixed test for options