Tests for formatDate() and slight change to formatDate() interface.