Update test to detect incorrect base usage in ApplyLinToLog, correct the bug