stat_function added
Tests updated for new testing framework