Fixed tests. Page rendering tests have to use external listener now as direct calls of the render() methods lead to the output flushed to the PrintWriter, thus we cannot get it via the toString() method anymore.