Unit test for attr_fn_l