warning rule resource and tests