fixing interoperability with native child_process. also added tests