net-timestamp: fix allocation error in test