fixed the error-throwing tests