Fix tetscases related to timestamp

Fix of unittests related to timestamp.