Fix comparison of timestamps in test