[#33] Fixed memory leaks in MainSuite