[ticket/12362] Add tests for schema generator

PHPBB3-12362