add getopt test file
try to reduce io cpu load