Tests of closures that span packages in R