Add method for testing whether a post is indexed mostly for unit tests