Minor changes to the output of the mock_-files.
Added a macro to evaluate and then reset expectations in test cases, needed for sequential calls.
Refactored and implemented pattern editor functionallity and improved testabillity and code coverage.