Unit tests on Processor. Bug fixes.