Testing date functionality