Fixed unit test for FlatDialog class.
Fixed Backtab to tab widget.