normalized trigger and emit returned values and added tests