Add basic call return and error functionality.
Add tests for client call return and error functionality.

Could use improvments in the test setup.