Test: Avoid using NULL pointer in negative cases.