first 2 tests for cell rules