fix high cpu, but exit-early bug, some tests fail
add mutex in tests to increment call count
document fix, closes #12
closes #12
merge v0.3.2 fix