Fix incorrect signatures in get_testing_overrides, and add test for incorrect signatures (#45983)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/45494
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45983
Reviewed By: agolynski
Differential Revision: D24220048
Pulled By: ezyang
fbshipit-source-id: 67826efdb203d849e028467829f7b5ad4559ec67