test cases for User and Post model