fixed templates and added test cases for client calls to allocate/deallocate/fulfill inventory