fixed client-side unit tests