API metadata fix, posts API tests fixed