add cart entity, unit test cart functions