[tests] Add examples parameter to DocTests

to test the given examples only instead of every example.
Merge pull request #358 from afh/pull/DocTests

[tests] Add examples parameter to DocTests