Modified the unit test for log_det