Fixed delete inventory bug
Overhauling tests to be more correct.