Be sure to include OUT_DIR for doc tests

Closes #879