promise: fix wait-finish-wait bug, add tests
v0.0.97