Add test for utils.date
Handle cases where less than two values are given for lastvalue widget