Added a test for decrement inventory activity.
Fixed tests.