Delay function tested