added user hooks to notify start and end of test cases

Adds an interface to receive start/end notification of test cases. In our project this allows us to verify some states in-between tests, such as memory leaks.