pdb in test client