Wrote test for expiration check