testing class dictionary creation