added a test for numberofposts in topic to check for topics that does not exist