fixed timing-sensitive tests