Unit test for log_det added. log_det updated.