[backend] Report errors correctly on test.