warn-documentation.cpp: reorganize tests

Tests are ordered by command in this file.  It is nice to keep it that way.