Unit test Cart class.