Added datetime generator and some tests.