[Test] Fixed datetime_to_timestamp function