Refactored model lookup tests; refs #18586.