Fixed a bug with seconds-in-the-future setItem, updated tests accordingly