refactor shopping cart tests