dictionary test improved, no debug print