take base-index into account in WindowIndexTest