Added code to test the relay switching time functions