Update pollutantmean.R

fixed development errors.  Added embedded functional tests.