Add testing infrastructure for TomDoc