fixing failing test that checks errormessage
keep pom.xml unchanged