added test for odd bracket parsing
bugfix for odd bracket parsing