added sendProfile trigger, corrected unit testing