Add developer guideline for testing warnings

As noted in #1174.