Rewrite processors and add processor tests.