Call __invoke() instead of render(). Fixes #90.
Add tests. References #90.