Add catalog population test.
Fix catalog _id setting and reference in Post.
Fix the catalog and post test.