Adding tests for posts