[ticket/12561] Added tests for "after last", "after missing" and "empty"

Also removed tabs

PHPBB3-12561