Test case for negative numbers in nested brackets