Fixed flakey test case

Assume that time() function will not return the same value. Thus, the test case will fail if setting expiration time to 1 second. Changing expiration time to 8 second will solve the problem by assume that the return value of time() function will increment by 1 when called every time.