basic support for <C-D> and <C-U>, with initial attempt at tests