test for Nonetype checkmaxcomments