test(nova-agent-watcher): refactor to make more testable