[PATCH v3 19/29] patman: Add some tests for warnings