[ticket/11840] Fix tests to include container for class construction

PHPBB3-11840