Fix dictionary tests.