Add hash flatten test