improve tests and extract doInitSummary