Tests for _util.py

 * Helps towards: Test coverage >= 80% #722.
 * flake8.