Add unit test for getopt's handling of invalid long options.