tiny refactoring on processors + extra unit tests