Restricted testing for the Hardy-Littlewood maximal function