stat_function added
Tests updated for new testing framework
Merge pull request #170 from EricChiang/master

stat_function added