Rename "np" to "newproc".
Trying to solved dangling pointer problem.
Add test_proc() as new process in first(), success.
Failed by trying to add test_proc() as new process with shell "newproc".