client unit tests