Adding test for PrefixCollection
Testing on AddAndPersist
Manually verifying that addStatistics, and later on persisting statistics into the database works fine.