Added ability to reset mock objects.