testMinLayer fix