UT for log(). Fix bugs associated with method