QAR-49134: streamline test framework a bit and add libdoc test