added spec for function to convert hash to csv string