added spec for render method