Clean up unique_attributes shared examples to use shared example blocks
rather than methods

[#72663842]

Signed-off-by: Eric Malm <emalm@pivotallabs.com>