functional and unit test on cart and product