add some func tests.