fix test targeting wrong exception