add tests for WeightedSnapshot