Unit test fix - call to $this as opposed to $template