changed null to undefined in Debug.endWatcher()
added Debug.endWatcher() tests