Add bracket unit tests
Create bracket parsing code