Fixing date tests