move test for Function to top of homogeneous_order