[Android] Add test case for onReceivedErrorTest().

This patch is to add test case for onReceivedErrorTest().
Open some urls with error format, the resource client will receive
the related error. Verify the error information with the expected
result.
Does it need to catch the `TimeoutException` thrown by `waitForCallback`, since you are asserting the callback will not be called here.