[tests] Add examples parameter to DocTests

to test the given examples only instead of every example.