refactor(form): refactor checkbox handling and tests

related to CAM-2499