fix uppercase issue in test, making the test fail always
generate flattened key of deep nested hashes (thank you  @brianweiner)