Cleaned up function calls in insert_function_test