Added code for profiling of the tests