Mock get_profiler_by_type() for some tests.