Fixed major issue which caused second and subsequent mock objects to be all screwed up