Optimize layouts test cases

Reduce the number of test cases we run by identifying the minterms
that reflect the business logic most closely.