add tests for set_loglevel [skip ci]