tests for timestamp handling