Added test code to test the update command
Added ability to pass in dicts to update
Fixed test by removing i that shouldnt have been there