Fix compile error
Test for NewPost. Update NewPost with fixes.