My general take on it is that you want unit tests to be as complete as reasonably possible. Usually, it's impossible to do anything like test every possible input, but in cases like these, you can, so I do. No, it's not strictly speaking necessary, but being thorough in testing breeds correctness.