Added some test code to cover remote object.