fix compilation error when building with maven

An error in the test code prevents the project from being build with maven. I removed the seemingly unneccassary constructor from CompilationError to fix this.