fix long options error handling test case