improved logging on refresh failures, tighter test constraints