Refactored Model lookup tests. Refs #18586

Test Model lookup refactoring that were coming from doctests.