Patch for object test includes null object