add test for density