added general tests for log_determinant
added NaN test for log_determinant