Fix respondsToSelector call to test for the selector that is called.