[ticket/10729] Add assert messages and finish up tests

PHPBB3-10729