Fix test under maven.