[ticket/10729] Add tests for some special tables with unique conditions

PHPBB3-10729