update declarative listener test case