fixed estimate_capacity / cache test