truncate datetime if configured
minor update in test