[ticket/9341] Check for posts on first and second page in tests
Assert if second page has last post and first page has first post

PHPBB3-9341