Added tests for preprocessor and postprocessor, some test fixes
Bugfixes for feature #13