Finnished the function test.