Testing of density functions