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