Yes - you should have a test for this one, specifically because it involves some magic that you don't entirely understand (and neither do I, to be honest). This is to make sure that it actually does what you mean it to do. And so that you can use the test to implement this in a better way in the future.