Refactoring around the IHandler interface.

Unit tests of processor. Refactoring around the IHandler interface.