Added reaction to checkboxs changing. Fixed tests