fix bug when few data is provide
add usage tips for test/test.js