fixed unit tests of log2 variations on 64bit env