[IMP] improvements in tests, using xml id for search records