test: add unit test for integer log2 function