fixed time bug in test