Add tests for vocabularies - used for the migration

@pbauer