Added cart isExpired() method and cart test