modified trig(); added tests for Channel and Logger