Added some tests for toTimestamp