tests: doctests

* Removing the broken_module and syntaxerror_module and emulate this
  behaviour using mock.

* Activating the doctests

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>