Tests for post and category