template listener for test case.