perf(tagging_view_factory): Move a test out of the loop