Add tests for recent getopt changes.