Vegetarian pasta salad with beans