client unit test bugfix