Add more regression tests

From lathspell's pull request https://github.com/dimitri/prefix/pull/5,
though we are using pg_regress, not pgtap.