use child_process in test
add support for node v0.11