Proper dictionary result handling with test