test/test_exp: add an approximate log2 test, more switches