add dialog layout unit test.