Create StatsCollector class.
Create unit tests project.
Make internal classes visible to the unit tests project.
Merge branch 'unit-tests' into complex-stats