Fixes for tests in core module
Merge branch 'spring-data-jpa' of https://github.com/geonetwork/core-geonetwork into spring-data-jpa