Update post manager code and tests.