Add a test for using `apply` with a context (issue #50).