merge all test to test.js
refactor thunk function

add second arguments `defer` to init function
0.0.6