Add doc tests and source files for them