testDensityInfinity function

Test function infinity ragged