BUG: Check for wrong arguments in index subclasses constructors
- [x] closes #19348 
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
