improved tests for AggregateReader/Writer