Refs #18586 -- Refactored expressions tests.