gh-103553: Improve `test_inspect`: add more assertions, remove unused (#103554)

1 file changed