Added test for delay function.