Update toAtom() test case to use DateTime instead of time()