Updated test to reflect that $this within a closure thats inside a class is allowed