Add exception test.