Adding tests for Processors API and fixing some issues.