add client unit tests