Add specs to test relationship creation and attributes