Update run once command and associated test

* nf.js run command exits the main process with the same code as the child
process
* proc.js once function passes the exit code to the callback function
* test counts successful callbacks and calls assertions on process exit