added spec for nested hashes