Added unit test for Statistics::transform
Also tested the Statistics::transform method with a different starting artefact.
Updated for PSR-2
Refactored the StatisticsTest for better reuse.
Merge pull request #1362 from pascaldevink/statistics-unit-tests

[TestFest] Added unit tests for Writer\Statistics