verify div creation function works properly