40 tests
1

Method 0 (with wired gates)