added parsing test for functions