Also made the behavior consistent when an incomplete comment is found.
Moved the test into the core where it belongs.