added testing for Post class