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