tested some density function