Issues #3167, #3682: tests for math.log and math.log10 were failing on