dict parsing and tests