implements exists() and adds tests for renderResponse()