added spec for nil replacements