[ticket/12099] Fix test - use proper vars

PHPBB3-12099