added summaries and test