UAParser reentrancy and state guard tests