LPS-39101 Add @Sync annotation and related test listeners, as it uses indexes when counting elements