test for Post model