[ticket/12071] Get rid of unneeded cast to boolean in tests

PHPBB3-12071