added tests and tested the processor with a helper
bugfixes