Writting test to fix type on date type