Fix plateDensity.
Update test7.hs and test6.hs.