Add defer tests with arguments