Add a bracket unit test

Needs work, but it's a start