Add tests for layout commit.