Test function as string