Added test about error filterwarnings

Refs #20083.