added test case for remote exception