Add test for attribute access in dynamic block