Clean up defer in rendered callback test