Mission tests

Some test refactoring and initial tests for 'edit mission'
put this in the before field under the describe above.