fix last object refcount test