I’m going back through the Essential Developer iOS Lead course and this is one of my favorite tricks they teach.

addTeardownBlock invoked after each test is run in XCTestCase

This allows you to test for memory leaks in your tests.