Fix render() assignment.

I can only assume someone missed the `=` sign.
Also adds an assertion in the test suite to ensure it operates the same as `toString()`.