Removing global variable and adding setup to unit test for TestSummaries