Added unit tests for the Cart class