Add tests for valError and valmsgFor.
Add test for valmsgSummary.