add test for flattening metadata keys