And yes, tests are necessary else there is nothing to gurantee that this functionality or corner cases are not lost in future modifications. The tests are ways of saying, "does your better idea handle this situation"? The tests are invaluable for not regressing with code changes.