Added test for expiry