Pass $this as a re-named variable to closure, fixes test

PHP 5.3 does not support $this in anonymous functions, must pass it
in as a captured, renamed variable instead