Refactor Cart Test