expanded tests for summaries repository, changed summary from entity to value type