More tests for process.
Fixed test for prepare and finish.
More reliable tests for process.