Added a unit test for removeCargo