Adds test for case when the same function is called multiple times
Handle corner cases:
* no records collected
* one record collected
* exception raised by the profiled function