Add new test for MultiProcessInvoker

Also change a bug in other tests.