update: add usage function in testmain