Remove unnecessary profiler code which was causing test to fail