Fix tests for nested hashes