doctests are broken

**Problems:**
* the broken modules in the tests directory are preventing the doctests to be run
* the doctests are not run (because they are broken)

**Changes:**
* using mock to emulate the syntax and import errors
* enabling doctests