Add doctest infrastructure and client/server test