Restoring SWF payload generation for testing