Fix failing unit tests on MacOS

Hello Jérôme,

Here are my modifications to the pom.xml I made. 
I just added variables/properties in every OS profile and configured and modified the surefire plugin configuration.
This has only been tested on MacOS so I'm not 100% sure whether the project still builds on the other platforms.

Regards,
Patrick