Fix date and add doc test