Add some unit test for friendships and posts