update test date to mark date if greater than 365. Updated directive to restrict gridin to 4 characters