Added unit tests for cancellation-waiting workflow in installer dialog. Fixed Esc to not cancel the dialog if we're waiting for cancellation.