updated api assignSpy min check