improve test coverage of subprocess
improve subprocess in test suite