add test for bug in handling of instances under construction
fix bug and make test pass
commit js
0.3.0-beta.5