command/watch: Adding tests