Fixed previous "Enabling profiler in test"

fixed #2952