Add more specific tests for aborting msgdialogs

Including checks for return value while in wrong state.

-[Unknown]