Fix chardev tests.