unit tests on cart controller