fix test when run against wildfly
fix a spec violation