Solving problem with grails returning error code equal to zero when tests failed