Only fire end event when end saving reps to the component,json, #258.
Add tests for install command, #258.