refactoring and fixing tests for summaries in a separate collection