Make integration tests more flexible for other geonetwork based projects.

(Merge To Develop)
Core now passes tests and static checks.