Add missing unit tests for getIcon()