Added expected exceptions.