It was classic, but it was not a gaffe.
Mike-checks were always off-the-record, and Reagan was not the first to entertain the audience with a joke for a mike check. It was the media that decided to break decorum and report the off-the-record mike check as if it were a newsworthy comment.
Reagan was well aware of mikes. Doesn’t matter he was wonderful and had a sense of humor to match.