added some tests and fixed a bug with view renderers