tests: Add tests for yank with the chardev-change case