Added some error handling code for the Dota 2 API.
Added 2 tests for User