How to test a relay