Fixed issue with filename not being set when tearDown is called