unit test for Cart