fixed unit tests for log2 on 64bit env