refine test
fix regexp to match function() case, this should fix #44
Merge e0535214688a46fcaa9939bf8217a1d826d98816 into e19227ed6d0b267fe3eb09bb0e61ffbc6c994ddb