Adding API to get the current timestamp (and using it).
Adding test for correct timestamp order.