Unit tests for GNU emacs that work interactively and in batch