test sugaring code within IIFE