tests/libresource: Make Attribute initializer similar to others

Before Attribute would have taken a Murphy attribute pointer,
which broke the design of the other wrapped structures, but now
it works in a similar way to the others.