I think your table design may be poor and this is giving you the headache. I assume you have 30 tests that you want to apply and if any one of these tests fail then the item as a whole fails.
Instead of 30 checkboxes (what happens if you need to add a 31st test?) I would have a related table and only store results of failed tests. Then you can count the number of entries in this table and if it's zero it's a pass, if it's greater than zero it's a fail.
See the attached.