testing threading in client