switch block examples: null test added