fix subprocess test