Refs #23947 -- Prevented staticfiles tests from having side effects.