add test case for unpin listener