fixed usage test, added getopt test
fixed getopt test
passing getopt test