modify run tests to properly stop nodejs