Java 7 returns localized error messages which causes two tests to fail (because they explicitly check parts of the error message). Adding the locale to the java command invocation fixes this.