fix the test codes
add help message in main function