Added test to test isBracket. Passed