standardize logging in tests