test the function type