Test on exceptions were failing on travis