How does the function test work?