fixed error if test client is null