Fix Network.get_response()

Finally, I managed to make the changes we discussed yesterday. Also, I added a very basic test case for Inventory.get_response() and Network.get_response(), respectively. 

I hope I did everything correctly this time, this is actually my first attempt of a pull request :-)