nil test function, back to the original PR