tests about exceptions