WIP: client unit tests.