Stronger assertions in Redis tests and more permissive bounds in test util method signature