testing logdet