I can see at least two test cases here. I will try to see how easy they are to write.