fixed test_corpus_views.py, obsolete code was used in the test
fixed toolbox.doctest xml api deprecation warning