Integrate new test cases from @odebeir and fix old function names of dilate and erode