[ticket/299] Add tests for phpbb_fetch_posts

Fixes #299