if (testDetails.getProperties() != null) {
if (currentTest.getProperties() == null
|| currentTest.getProperties().size() != testDetails.getProperties().size()) {
currentTest.setProperties(testDetailsCreatedEvent.getTestDetails().getProperties());
try {
<BUG>ESUtils.update(Common.ELASTIC_INDEX, "test", currentTest.getUid(), currentTest);
</BUG>
} catch (ElasticsearchException | JsonProcessingException e) {
log.error("Failed updating test details in the Elasticsearch", e);
}

if (testDetails.getProperties() != null) {
if (currentTest.getProperties() == null
|| currentTest.getProperties().size() != testDetails.getProperties().size()) {
currentTest.setProperties(testDetailsCreatedEvent.getTestDetails().getProperties());
try {
ESUtils.update(Common.ELASTIC_INDEX, TEST_TYPE, currentTest.getUid(), currentTest);
} catch (ElasticsearchException | JsonProcessingException e) {
log.error("Failed updating test details in the Elasticsearch", e);
