fix undefined variable issue
turn off logging in tests