Add test for remote error