Use new-style test definitions
r: use stable prefix for gettext and readline

Closes #1103.