add spec for #to_yaml