Is there a test for this logic?