Mission tests

Some test refactoring and initial tests for 'edit mission'
line 115 and this line are same.  You can just put them in one test.