grammar fix in docstring
adding unit test for breaking out of a loop-while