Implemented and tested WeightedSnapshot.