Are there tests for this function?