Add Unit test
Fix error format convert
Restore color of dialog