Fixed and made more robust the Dirichlet character test

The Dirichlet character test was broken (my guess is that it used to work, but got broken by a minor modification of the LMFDB syntax as this test was not robust). I have replaced this test with a more robust version based on a regular expression search. Now, all tests are OK (with Sage 6.2).