Client's method error handling.

Also more test units added.