Fix inconsistencies between IDE and Gradle test environment