Testing deployment errors doesn't work with Wildfly and Glassfish