Erode / Dilate combo tests and code fixes