Add more unit tests for client.result, and more small code tweaks.