Minor bugfix + implemented test for GetAllPosts