test using template context in button class