fixed timing test code