Tests about exceptions added.