Add more specific tests for aborting msgdialogs.

Including checks for return value while in wrong state.
Let's add another interesting status check.
Test after the status is reset to none as well.
Merge pull request #133 from unknownbrackets/msgdialog

Add more specific tests for aborting msgdialogs