Cilantro Black Bean Salad

1/4 cup onion, sliced thin
1 container cherry tomatoes, cut in half or whole grape tomatoes
2 15 oz cans black beans, rinsed well
1 clove garlic, minced
1 lime, juiced
1 handful cilantro, rough chopped
1/2 teaspoon salt
1 avocado, diced (optional)

Toss and serve.