Tests for dictionary