tests: add tests for string lookup tables

The tests check if the tables have entries for all values
in the enum, and that the entries are unique.