This sort of thing was used in the past to keep Black people from voting.
I am sure the OP's suggestion was in good faith, just that they weren't aware of some of the history and potential repercussions.
The commenter's point is that these "tests" can be designed to be difficult for one race/community, but easy for another, thus preventing them from holding an office.
It's great to have high standards for public office, but it's the voters who should hold their elected officials to those, not an arbitrary test imposed by the government.