feature/inventory Inventory CRUD tests

phpunit tests for /modules/api/inventory.  Implements a complete CRUD tests on inventory.  Also fixes issue #6.