check RemoteException code in unit tests