Fix unit tests for GridLayout.add() and GridLayout.empty().