Add proper heights to wrapping parens

Start implementing some of Ned's comments.
Add tests for preview.py

Test the `render_X` methods as well as `latex_preview` on the whole.
Add a few 'pragma: no cover's to hide unreachable code from coverage.
Change a few tests to use `with self.assertRaises` for readability