add the missing expected exception test