Tests for expiration bug #4