typo fix, inlining of "done" function, rename test