CRM-14822 tests to ensure correct checkbox handling