[ticket/12657] Delete useless file and improve tests

PHPBB3-12657