fix cassandra trim test for agg feed, add docstrings