Refactored a bit d3bracket displayer and tests (+ added some tests)