better control of timing during junit tests