unit test logging decorator