fix #10;add test;fix async test output