Commonised build settings. Fixed Jacoco-covered tests.