Add test case: if the return value is a remote object and it has been exported, the return value is substituted as its stub. Otherwise, a copy of the remote object is returned.