test: Add more helpers for emacs tests.