add published property to posts and create tests for existing
functionality