The purpose of the proposed article is to present the creation of ontologies for automatic generation of test questions from the Test Generation Environment, which was created as part of the Virtual Education Space. The ontologies presented in the article are in different fields and can be helpful to students in their exams or for self-study. The three ontologies are in the fields of botany, literature and history of Bulgaria, and architecture of Revival houses. The article presents examples of automatically generated questions for each of them.