expectedException() update