Fixed issue when stubbing class methods which are implemented in a parent class were not working after calling stopMocking