Fixed exception throwing tests