consolidate null date tests