add minimal edge removal test with some corner cases. #1547