Test that timestamp is set correctly