Suyu issue31: unit test for layout.

complete the rough layouts for workspace, drawer, and dialog.