Test gaussian density