Add some tests for the #R macro's handling of remote entry points