Updated Rebuild Index tests. Also log when invalid value is not written to index (will need to investigate).