Adds profiling to tests