fix failing test in log package due to incorrect truncation of number of nanoseconds