add tests for render with block, closes #711