Add test case for unexpected NSSet. #1118