I don't see any assertions or checks here. What does this function test and how?