test by directly rendering the view