Mission tests

Some test refactoring and initial tests for 'edit mission'
same, extract out to a before field.