Make framework initialization test more robust

Needed after PR to add regex route caching.