Add test for subprocess and update documentation in header file.