Added some unit tests for stats/Units.
Added test suites for ScalarEstimator and ScalarAccumulator.
Added missing files from last commit.