Fix 'process' method and tests.