Update docdata test to mock use of external docdata service

This is so that the tests run when the docdata server is broken. We should move any tests that connect to docdata to a test_integration.py.