tests for dictionary correctness