improve test 'framework', more tests for getopt