[tests] Add examples parameter to DocTests

to only test the given examples instead of every single one.