added profiling to tests