Added functional tests to cover rendering views without layout and results without content

Added functional tests to cover rendering views without layout and
to return a result without content.