Wrote some tests for Cell.render.
Added in tests and a bit of refactoring for layout.addCell.