add test for pinWatcher