Make sure you connect the sense wire to the right side
One (large) place where I worked had an automatic diesel generator set (ISO-container sized IIRC) set up to come on automatically on detecting loss of incoming mains, and off again once mains was restored.
I can't remember whether this was on a deliberate test, or a real mains failure, but the first time it detected loss of power and switched itself on... it immediately detected that the power was back, and switched itself off again.