added test case for iloc function if it returns the same output for b…
…oth numpy and pandas arrays to fix the issue #40933 

- [x] closes #40933 
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry

We can not cast to numpy here, our ExtensionArrays behave different This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this. closing as stale. ping when ready to continue and i'll reopen.