Fix test is None case.