Is there a test for this function?