Simplified logical test.
Added examples with diff proportions.