Created tests for RatedStatisticStorage. Minor Bugfixes.