added unittest for shipping logic