building and testing in maven

note that CoreTest line 498 works just fine with javac/java, but breaks
with Eclipse
fixed test