updated configureTriggers method, added few tests