test & fix bug due to misunderstanding of promise spec.
1.0.0