Add implementation and test of change watcher class.