added progam to test the relays from command line