Delete temporary test file after use

Fix an incorrect call to FileUtils::deleteFile that meant that a test
wasn't cleaning up after itself.