fixed exception test