added test for posts