fixed erroneous comparison causing offset error
fix for cases where there isn't even an item with key '0'
Merge pull request #2 from financial-media/hotfix-comparing-objects-during-tests

fixed erroneous comparison causing offset error