template-callback pattern test