add unit tests
refine the read function's help message and add some more tests