Added and fixed tests for summary.