changing test to account duration in milliseconds