Use documented unittest instead of the example in the comment

I removed an example in the comment and make one of the unittests a documented unittest.
In addition to that, I marked the documented unittest as safe, pure and nothrow.