[ticket/12597] Modification of return statuses and of test files

PHPBB3-12597