moved CommandBase.init to setUpClass
Modefied relay to work with unit testing