template instantiation added, accuracy reduced for log-det unittest