registration: Allow overriding attributes in tests