Tests: add tests for MoGenerator and MoParser