Fixes some intermittent test failures by replacing wildcard with loopback - or retrying once. Reviewed-by: aefimov, chegar