Added Test for SolrIndexer

refactored SolrIndexer for easier testability
SolrIndexer now enforces that entity was persisted to db