[ticket/11482] DEFINE unit tests

New unit tests for advanced DEFINE

PHPBB3-11482