Added test case for delay method