gdth: reorganize tests to use array