Mission tests

Some test refactoring and initial tests for 'edit mission'